<template>
    <div class="add-publish">
        <div class="publish-btn">
            <Button type="primary" shape="circle" icon="paper-airplane" @click.native="addGoods">发布商品</Button>
        </div>
    </div>
</template>

<script>
    export default{
        computed:{
            goodsInfo:function(){
                return this.$store.state.page.addGoods;
            }
        },
        methods:{
            addGoods(){
                const self = this;
                this.$http.addGoods(this.goodsInfo).then(res => {

                }, error=> {

                })
            }
        }
    }
</script>
<style lang="less" scoped>
    .add-publish {
        .publish-btn {
            display: flex;
            height: 100px;
            align-items: center;
            justify-content: center;
        }
    }
</style>